linux gntdev: Mark x86-specific code as such with ifdef.
authorKeir Fraser <keir@xensource.com>
Sat, 31 Mar 2007 15:39:14 +0000 (16:39 +0100)
committerKeir Fraser <keir@xensource.com>
Sat, 31 Mar 2007 15:39:14 +0000 (16:39 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c

index fe1e98b2f1d48cbc1c289894e625957bddcde10e..8716e8aa558e1c317ee5ca3593dad8cf120d9c67 100644 (file)
@@ -518,12 +518,14 @@ static int gntdev_mmap (struct file *flip, struct vm_area_struct *vma)
         */
        vma->vm_flags |= VM_DONTCOPY;
 
+#ifdef CONFIG_X86
        /* This flag ensures that the page tables are not unpinned before the
         * VM area is unmapped. Therefore Xen still recognises the PTE as
         * belonging to an L1 pagetable, and the grant unmap operation will
         * succeed, even if the process does not exit cleanly.
         */
        vma->vm_mm->context.has_foreign_mappings = 1;
+#endif
 
        for (i = 0; i < size; ++i) {